home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / flilib.zip / FLISRC.ZIP / AAFLISAV.H < prev    next >
C/C++ Source or Header  |  1990-02-20  |  1KB  |  37 lines

  1. /* aaflisav.h  Copyright 1990 Dancing Flame, San Francisco */
  2.  
  3. #ifndef AAFLISAV_H
  4. #define AAFLISAV_H
  5.  
  6. #ifndef AAFLI_H
  7. #include "aafli.h"
  8. #endif /* AAFLI_H */
  9.  
  10. /* Compress a frame into a RAM buffer.  Return size of frame. */
  11. long fli_comp_frame(Cbuf *comp_buf,         /* Buffer FLI_CBUF_SIZE or bigger */
  12.     Pixel *last_screen, Cmap *last_cmap,     /* Data from previous frame */
  13.     Pixel *this_screen, Cmap *this_cmap,    /* Data for this frame */
  14.     int type);                                /* FLI_BRUN?  FLI_LC? */    
  15.  
  16. /* Open FLI file and write out first frame.  Return file handle if things
  17.    go well, error code otherwise */
  18. Jfile fli_create(char *fliname,     /* file name */
  19.     Fli_head *fh,                     /* fli_create will initialize this */
  20.     int speed);                        /* Speed in 1/70th of a second */
  21.  
  22. /* Write succeeding frames of a FLI. */
  23. Errval fli_write_next(Jfile ff,         /* FLI file returned by fli_create */
  24.     Fli_head *fh,                         /* Same header used by fli_create */
  25.     Vscreen *this,                         /* Current frame */
  26.     Vscreen *last);                        /* Previous frame */
  27.  
  28. /* Finish up writing a FLI file...
  29.    Write the 'ring frame', that is the difference between the first and
  30.    last frame of a fli.  Pass in the final frame of the FLI in last_frame.
  31.    firstf_buf will be loaded with the first frame of the FLI as a side
  32.    effect.  */ 
  33. Errval fli_end(Jfile ff, Fli_head *fh, 
  34.     Vscreen *end_frame, Vscreen *firstf_buf);
  35.  
  36. #endif /* AAFLISAV_H */
  37.